#include<stdio.h>
int main(int argc, char const *argv[])
{
    int a,b,c,count=0;
    printf("There are different methods for XM to distribute books to 3 reads:\n");
    for(a=0;a<=5;a++)
    {
        for(b=1;b<=5;b++)
            for(c=1;a!=b&&c<=5;c++)
                if(c=1&&c!=b)
                    printf(count%8?"%2d:%d,%d,%d":"%2d:%d,%d,%d\n",++count,a,b,c);
    }
    return 0;
}
